export const sceneStateKey = 'sceneStateKey'
export const oppStateKey = 'oppFindStateKey'
export const prizeStateKey = 'prizeStateKey'
export const userKey = 'userKey'
export const phoneKey = 'phoneKey'

export const activeDateRange = ['2024-11-09 19:00:00', '2024-11-14 19:00:00']
export const sceneLen = 3

// 活动暂定 5 天
// 200 块蛋糕券，10 张，每天抽两张，100元话费5份，每天抽1个， 50 块话费 10份，每天抽 2 个，20 块话费，100份,10元流量包，150分，每天抽30个。
// 抽奖概率就按 2000 人参与
export const quorum = 300
export const activeDays = 5
export const prizes = ['蛋糕券', '100元话费', '50元话费', '20元话费', '10元流量包', '未中奖'] // 未中奖放最后一个
export const prizesNumsMap = {
    '蛋糕券': 10,
    '100元话费': 4,
    '50元话费': 6,
    '20元话费': 80 ,
    '10元流量包': 100,
}
const tempWeight = [
    prizesNumsMap['蛋糕券'] / 800 * 100,
    prizesNumsMap['100元话费'] / quorum * 100,
    prizesNumsMap['50元话费'] / quorum * 100,
    prizesNumsMap['20元话费'] / quorum * 100,
    prizesNumsMap['10元流量包'] / quorum * 100,
]
export const prizeWeight = [
    ...tempWeight,
    100 - tempWeight.reduce(function (prev, currVal) {
        return prev + currVal;
    }, 0)
] // 中奖百分率
export const prizesTotalNum = Object.values(prizesNumsMap).reduce(function (prev, currVal) {
    return prev + currVal;
}, 0);
export const weightSum = 100; // 计算权重之和

export const adminPhones = ['17621981536', '18591797111', '18862489151']